﻿using System;
using AwesomiumDotNet;

namespace BasicDemo
{
    class BasicDemo
    {
        const int Width = 800;
        const int Height = 600;
        string URL = "http://www.google.com";

        bool isRunning = true;
        WebView webView;

        public BasicDemo()
        {
            WebCoreConfig config = new WebCoreConfig();
            //config.SetEnablePlugins(true);
            //config.SetCustomCss("hello");

            WebCore webCore = new WebCore(config);
            webCore.ClearCache();
            webCore.ClearCookies();
            webView = webCore.CreateWebView(Width, Height);

            webView.LoadUrl(URL);

            //webView.Dispose();
            webCore.Dispose();
        }
    }
}
